﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Test_ControleBox
{
    public partial class Form2<U> : Form
        where U : Control
    {
        public Form2(U c)
        {
            InitializeComponent();

            this.Text = c.GetType().ToString();
            this.propertyGrid1.SelectedObject = c;
        }
    }
}
